import { System } from "./System";
import { uploadFileToS3 } from "./upload_file_to_S3";

export async function project_load(system: System, file: File) {
  const uploadResult = await uploadFileToS3(
    system,
    "/project/" + file.name,
    file
  );
  return system.connector.project_load(uploadResult.url);
}
